package com.cetc.operate.audit.recorder;

import com.cetc.operate.audit.annotation.OperateAudit;
import com.cetc.operate.audit.entity.OperateInfo;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class DefaultRecorder implements Recorder<OperateInfo> {
    @Override
    public OperateInfo parseParameter(OperateAudit operateAudit, Class<?>[] parameterTypes, Object[] args, Throwable throwable) {
        log.info("parser logs");
        return new OperateInfo();
    }

    @Override
    public void save(OperateInfo logBean) {

        log.info("write logs");
        System.out.println(logBean);
    }
}
